<?php
/*
 * Created on 21 janv. 2009
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 */
 class Model
{
	protected $params;
	protected $menuG;
	protected $daoFactory;
	protected $translator;
	
	function __construct($p,$Translator)
	{
		$this->translator = $Translator;
		$this->params=$p;
		
		require_once("factories/DAOFactory.php");
		$this->daoFactory = new DAOFactory();
		require_once("generators/MenuGaucheGenerator.php");
		$this->menuG = new MenuGaucheGenerator();
	}
	function getMenuG(){
		return $this->menuG->getData();
	}
	function getAnonymousUser(){
		return $this->daoFactory->getUserDAO()->getAnonymousUser();
	}
	function getLangues(){
		return $this->daoFactory->getLangueDAO()->all();
	}
}
?>
